package client.session;

import client.Chat;
import stalker.Stalker;
import data.Data;

public class ReceiveDataSessionVisitor implements SessionVisitor<Void> {
  
  private Stalker sender_;
  private Data data_;
  
  public ReceiveDataSessionVisitor(Stalker sender, Data data) {
    assert (sender != null && data != null);
    sender_ = sender;
    data_ = data;
  }

  public Void visit(Chat chat) {
    chat.receiveData(sender_, data_);
    return null;
  }
  
}
